            
            <!-- Message -->
            <div class="messages" id="message">
				<div id="message-error" class="message message-error">
					<div class="image">
						<img src="resources/images/icons/error.png" alt="Error" height="32" />
					</div>
					<div class="text">
						<h6>Login User Page</h6>
						<span id="form_message"></span>
					</div>
					<div class="dismiss">
						<a href="#message-error"></a>
					</div>
				</div>
			</div>
            <!--Message -->
            
            <div class="inner">
				<!--<form action="<?=site_url('dashboard/administrator')?>" method="POST">-->
				
                <div class="form">
					<!-- fields -->
					<div class="fields">
						<div class="field">
							<div class="label">
								<label for="username"><?=lang('user')?>:</label>
							</div>
							<div class="input">
								<input type="text" id="da-login-username" name="username" size="40" value="admin" class="focus" />
							</div>
						</div>
						<div class="field">
							<div class="label">
								<label for="password"><?=lang('password')?>:</label>
							</div>
							<div class="input">
								<input type="password" id="da-login-password" name="password" size="40" value="password" class="focus" />
							</div>
						</div>
						<div class="field" id="loading-img">
							<div class="checkbox">
								<label for="remember"><img src="resources/images/loading.gif" /></label>
							</div>
						</div>
						<div class="buttons">
							<input type="submit" name="login" id="da-login-submit" value="Sign In" />
						</div>
					</div>
					<!-- end fields -->
					<!-- links 
					<div class="links">
						<a href="index.html">Forgot your password?</a>
					</div>
					 end links -->
				</div>
				<!--</form>-->
			</div>
            
            <style>
                #loading-img{display:none;}
                #message{display:none;}
            </style>
            
            <script type="text/javascript">
            	$(document).ready(function(){
            		$("#da-login-submit").click(function(e){
            			$('#loading-img').show();
                        $('#message').show();
            			e.preventDefault(); 
            			var username=$("#da-login-username").val();
            			var password=$("#da-login-password").val();
            			
            			$.ajax({
            				type: "POST",
            				url: "<?=site_url('auth/administrator/do_login')?>",
            				dataType: "json",
            				data: "username="+username+"&password="+password,
            				cache:false,
            				success: function(data){
            					if(data.status == "success") {
            							$(window.location).attr('href',data.redirect);
            					}
            					else {
            					       
            							$("#form_message").html(data.message).css({'background-color' : data.bg_color}).fadeIn('slow');
            					}	
            					$('#loading-img').hide();	
            				}
            			});
            		});
            	});
            </script>